<template>
  <div>
    {{msg}}
    {{$route.params.user}}
    年龄{{$route.params.age}}
    id:{{$route.params.id}}
    name:{{$route.params.name}}
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  name:'Hi',
  data() {
    return {
      msg:'fsafdsa'
    }
  },
  created() {
    console.log(this.$route.params)
  },
}
</script>